package cn.bb.bbstudy.service.impl;

import cn.bb.bbstudy.dao.UserRoleDAO;
import cn.bb.bbstudy.pojo.UserRole;
import cn.bb.bbstudy.service.UserRoleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class UserRoleServiceImpl implements UserRoleService{

    @Resource
    private UserRoleDAO userRoleDAO;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return userRoleDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserRole record) {
        return userRoleDAO.insert(record);
    }

    @Override
    public int insertSelective(UserRole record) {
        return userRoleDAO.insertSelective(record);
    }

    @Override
    public UserRole selectByPrimaryKey(Integer id) {
        return userRoleDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UserRole record) {
        return userRoleDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserRole record) {
        return userRoleDAO.updateByPrimaryKey(record);
    }

}
